package com.studio701.carguard.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xjc
 * @since 2022-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("help_plan")
@ApiModel(value="HelpPlan对象", description="")
public class HelpPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "求助时间")
    @TableId("p_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonProperty(value = "ptime")
    private LocalDateTime pTime;


    @ApiModelProperty(value = "求助地址")
    @TableField("p_address")
    private String pAddress;


    @ApiModelProperty(value = "求助类型")
    @TableField("p_type")
    private String pType;

    @ApiModelProperty(value = "求助需要")
    @TableField("p_needs")
    private String pNeeds;

    @ApiModelProperty(value = "求助描述")
    @TableField("p_description")
    private String pDescription;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "车辆id")
    @TableField("c_id")
    private Integer cId;

    @TableField("p_longitude")
    private BigDecimal pLongitude;

    @TableField("p_latitude")
    private BigDecimal pLatitude;


}
